<%@ Control Language="c#" Inherits="Portal.Modules.AdminUsers.UserListControl" CodeBehind="UserList.ascx.cs" %>
<%@ Register TagPrefix="portal" Assembly="Portal.API" Namespace="Portal.API.Controls" %>
<%@ Import Namespace="System.Data" %>
<p>
	<portal:LinkButton ID="lnkAddUser" runat="server" OnClick="OnAddUser" LanguageRef="AddUser"
		CssClass="linkButton" />
</p>
<portal:DataGrid ID="gridUsers" runat="server" AutoGenerateColumns="false" OnItemCommand="Grid_CartCommand">
	<Columns>
		<asp:ButtonColumn HeaderStyle-CssClass="w3" ButtonType="LinkButton" Text="<img src='images/edit.gif' alt='Edit'>"
			CommandName="Edit" HeaderText="&nbsp;" ItemStyle-CssClass="LinkButton" />
		<portal:BoundColumn DataField="login" LanguageRef-HeaderText="Account" HeaderStyle-CssClass="w10" />
		<portal:BoundColumn DataField="firstName" LanguageRef-HeaderText="FirstName" />
		<portal:BoundColumn DataField="surName" LanguageRef-HeaderText="SurName" />
		<portal:TemplateColumn LanguageRef-HeaderText="Roles">
			<ItemTemplate>
				<%# GetRoles((DataRowView)Container.DataItem) %>
			</ItemTemplate>
		</portal:TemplateColumn>
	</Columns>
</portal:DataGrid>
